package com.zichen.pr.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zichen.pr.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * @program: zichen
 * @description: 岗位
 * @author: rzhang
 * @create: 2021-04-23 08:03
 */
@Data
@TableName("sys_post")
public class SysPost extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 岗位序号 */
    @TableId(value = "post_id",type = IdType.AUTO)
    private Long postId;

    /** 岗位编码 */
    @TableField(value = "post_code")
    private String postCode;

    /** 岗位名称 */
    @TableField(value = "post_name")
    private String postName;

    /** 岗位排序 */
    @TableField(value = "post_sort")
    private String postSort;

    /** 状态（0正常 1停用） */
    @TableField(value = "status")
    private String status;

    /** 用户是否存在此岗位标识 默认不存在 */
    @TableField(exist = false)
    private boolean flag = false;
}
